﻿using System.Net;

namespace Gobang.ToolClass.Networking
{
    public interface IClientNetworking
    {
        Action<byte[], IPEndPoint> DataArrival { get; set; }
        IPEndPoint LocalHostEP { get; }
        IPEndPoint RemoteEP { get; }
        bool Active { get; set; }
        bool Send(string ip, int port, byte[] data);
        bool Send(IPEndPoint iPEndPoint, byte[] data);
        void Close();
    }
}
